<%-- 
    Document   : ManageHomePage
    Created on : Mar 5, 2015, 3:10:57 PM
    Author     : trang_000
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://displaytag.sf.net"  prefix="display" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="description" content="<s:property value="pageDescription"/>">
        <title><s:property value="title"/> - Online Dormitory System</title>
        <link href="<%= request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_table.css" rel="stylesheet" type="text/css"/>
        <script type='text/javaScript'>
            function checkedAll () {
            var inputs = document.getElementsByTagName('input');
            var checkboxes = [];
            var check = document.getElementById('mainCheckbox').checked
            for (var i = 0; i < inputs.length; i++) {
            if (inputs[i].type == 'checkbox') {
            inputs[i].checked = check;
            }
            }
            }
        </script>
    </head>
    <body>
        <% int i = 0;%>
        <div class="headerbg">
            <%@include file="/include/nHeader.jsp" %>
        </div>
        <div class="contentbg">
            <div class="content1">
                <div class="content2">
                    <div class="contentLeft">
                        <div class="categories">
                            <div class="allCat">ALL CATEGORIES</div>
                            <%@include file="/include/aCategories.jsp" %>
                        </div>
                    </div>
                    <div class="contentRight">
                        <div class="body">
                            <div class="breadcrumb">
                                Home
                            </div>
                            <div class="bodyUpper">
                                <table class="simpletable" style="width:100%">
                                    <tr>
                                        <th>First name</th>
                                        <th>Last name</th> 
                                        <th>Student Code</th>
                                        <th>Phone No</th>
                                        <th>DOB</th>
                                        <th>Email</th>
                                        <th>Process Profile</th>
                                    </tr>
                                    <s:iterator value="profilesList">
                                        <tr>
                                            <td><s:property value="firstName"/></td>    
                                            <td><s:property value="lastName"/></td>
                                            <td><s:property value="studentCode"/></td>   
                                            <td><s:property value="phoneNo"/></td>
                                            <td><s:property value="dob"/></td>
                                            <td><s:property value="email"/></td>
                                            <td>
                                                <a href="<%= request.getContextPath()%>/Profile-Process/<s:property value='profileID'/>" title="<s:property value='studentCode'/>">
                                                    <img src="<%= request.getContextPath()%>/css/Edit.png" style="" alt="Creer Contrait" width="20" height="auto" title="Creer Contrait"/>
                                                </a>
                                            </td>
                                        </tr>
                                    </s:iterator>  
                                </table>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footerbg">
            <%@include file="/include/iFooter.jsp" %>
        </div>
    </body>
</html>
